package com.yike.order.service;

import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.order.entity.OrderDetail;
import com.yike.order.param.OrderDetailPageParam;

/**
 * 订单详情表 服务类
 *
 * @author yike
 * @since 2024-07-17
 */
public interface OrderDetailService extends BaseService<OrderDetail> {

    /**
     * 保存
     *
     * @param orderDetail
     * @return
     * @throws Exception
     */
    boolean saveOrderDetail(OrderDetail orderDetail) throws Exception;

    /**
     * 修改
     *
     * @param orderDetail
     * @return
     * @throws Exception
     */
    boolean updateOrderDetail(OrderDetail orderDetail) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteOrderDetail(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param orderDetailPageParam
     * @return
     * @throws Exception
     */
    Paging<OrderDetail> getOrderDetailPageList(OrderDetailPageParam orderDetailPageParam) throws Exception;

}
